package com.fjsay.java.demo5;
public class phone {
    private String brand;
    private String color;
    private int price;

    public phone(String brand, String color, int price) {
        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    public phone() {
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
    public void playMusic(){
        System.out.println("播放音乐");
    }

    public void showDetails(){
        System.out.print("正在使用价格为"+price+"元"+color+"的"+brand);
    }
}

